import request from '@/utils/request';
import { IAlarmInfo } from '@/api/deviceAlarms/types';

// 设备告警概况详情接口
export function getAlarmInfo(query: IAlarmInfo) {
  return request({
    url: `/largescreen/api/largeScree/getAlarmInfo`,
    method: 'get',
    params: query
  });
}

//顶部报警的搜索接口
export function getAlarmData(query?) {
  return request({
    url: '/largescreen/api/largeScree/getAlarmData',
    method: 'get',
    params: query
  });
}
//获取历史报警列表
export function getHistoryAlarm(query?) {
  return request({
    url: '/largescreen/api/largeScree/getHistoryAlarm',
    method: 'get',
    params: query
  });
}
